package com.usian.jyzx.model.entity.product;

import com.usian.jyzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 07 04 14 00
 **/

@Data
public class Category extends BaseEntity {
    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "分类图片url")
    private String imageUrl;

    @Schema(description = "父节点id")
    private Long parentId;

    @Schema(description = "分类状态: 是否显示[0-不显示，1显示]")
    private Integer status;

    @Schema(description = "排序字段")
    private Integer orderNum;

    int version;

    List<Category> children;
}
